FROM openjdk:8-jre
MAINTAINER 404forever <404forever.com>
VOLUME ["/tmp"]
EXPOSE 11000

ADD target/zuul-sever-0.1.0.jar /usr/share/zyz/zuul-server.jar

#设置入口命令
ENTRYPOINT ["java", "-Djava.security.egd=file:/dev/./urandom", "-jar", "/usr/share/zyz/zuul-server.jar"]

#设置时区
RUN /bin/cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && echo 'Asia/Shanghai' >/etc/timezone